// 状态更改 相当于methods
export default {
	kehu_list(state,data){
		state.kehu_list +=1;
	},
	SC_USER_JIANCHA(state,data){
		state.shengchan_user=data;
	},
	shengchan_list(state,data){
		state.shengchan_list +=1; 
	},
	shebei_parts_update(state,data){
		state.shebei_parts_update =data;
	},
	BAOCAN_USER_UPDATE(state,data){
		state.baocan_user_update =data;
	},
	shebei_update(state,data){
		state.shebei_update =data;
	},
		
	CAIGOU_FILES(state,data){
		state.caigou_files =data;
	},
	
	goods_update(state,data){
		state.goods_update =data;
	},
	
	gys_list(state,data){
		state.gys_list +=1;
	},
	
	product_update(state,data){
		state.product_update = data;
	},
	
	category_update(state,data){
		state.category_update = data;
	},	
	
	hetong(state,data){
		state.hetong = data;
	},
	XQ_LIST_UPDATE(state,data){
		state.xq_update += 1;
	},

	// 监听菜单更新
	MENU_UPDATE(state, data) {
		state.menu_state += data;
	},

	USER_LIST_UPDATE(state, data) {
		state.user_list = data;
	},

	// 监听审批人更新
	SP_USER_UPDATE(state, data) {
		state.sp_user_state = data;
	},

	// 监听抄送人更新
	CS_USER_UPDATE(state, data) {
		state.cs_user_state = data;
	},


	USER_TOTAL(state, data) {
		state.user_total = data;
	},

	PROJECT_ID_UPDATE(state, data) {
		state.project_id = data;
	},

	// 监听项目详情合同上传状态
	PROJECT_CONTRACT_UPDATE(state, data) {
		state.ht_state = data;
	},

	// 监听项目详情标书上传状态
	PROJECT_BIDING_UPDATE(state, data) {
		state.bs_state = data;
	},


	PROJECT_DETAIL_UPDATE(state, data) {
		// console.log(11112222,data);
		state.project_detail = data;
	},
	
	// 监听项目详情标书上传状态
	MSE_READ_UPDATE(state, data){
		state.msg_state+=data;
	},
	
	// 监听项目列表更新
	PROJECT_LIST_UPDATE(state, data){
		state.project_list+=data;
	},
	
	// 监听负责人更新
	FZR_LIST_UPDATE(state, data){
		state.duty_state=data;
	},
	
	// 监听项目经理更新
	PRO_MANAGE_LIST_UPDATE(state, data){
		state.project_manage_state=data;
	},
	
	// 监听任务列表更新
	TASK_LIST_UPDATE(state, data){
		state.task_list_state+=data;
	},
	
	// 监听回款计划更新
	BACK_MONEY_LIST_UPDATE(state, data){
		state.back_money_state+=data;
	},
	
	// 监听消息阅读
	MSG_LIST_UPDATE(state, data){
		state.msg_state+=data;
	},
	
	// 未读消息
	NEW_MSG_NUMBER(state, data){
		state.new_msg_num=data;
	},
	
	// 项目成员
	PRO_USER_UPDATE(state, data){
		state.pro_user=data;
	},
	
	// 监听socket消息
	new_socket_data(state,data){ 
		state.socket_msg_data=data;
	},
	
	// 监听聊天室成员
	CHAT_USER_UPDATE(state,data){
		state.chat_user_data=data;
	},
	
	// 监听聊天消息已读
	CHAT_MSG_READ(state,data){
		state.chat_msg_read+=data;
	},
	
	// 监听报告撰写人
	REPORT_USER_UPDATE(state,data){
		state.report_user=data;
	},
	
	// 采购列表状态
	CAIGOU_LIST_UPDATE(state,data){
		state.caigou_list += data;
	},
	
	CAIGOU_MSG_UPDATE(state,data){
		state.caigou_msg_list += data;
	},
	
	CS_USER_CAIGOU(state,data){
		state.caigou_user_list = data;
	},
	
	KUCUN_LIST_UPDATE(state,data){
		state.kucun_list += data;
	},
	
	KUCUN_ADDRESS_UPDATE(state,data){
		state.kucun_address_list += data;
	},
	
	KUCUN_SHENPI_UPDATE(state,data){
		state.kucun_shenpi_update += data;
	},
	
	SELECT_ADDRESS_UPDATE(state,data){
		state.select_address_update = data;
	},
	
	parts_select(state,data){
		state.parts_select=data;
	}
	
	

}
